package chances.system.operator.repo;

import java.util.Collection;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import chances.system.operator.entity.Permission;

public interface PermissionRepository extends  JpaRepository<Permission, Long> {
	public List<Permission> findByResTypeAndObjTypeAndObjIdIn(String resType,String objType,Collection<Long> ids);

	public List<Permission> findByObjTypeAndObjIdAndResType(String objType, Long objId, String resType);
}
